import ApproveRequestDetailComp from "containers/request/base-request-detail";
import ApproveExpenseReportDetailComp from "containers/expense-report/base-expense-report-detail";

import ApproveComp from "containers/approve/approve";
import ApproveLoanDetailComp from "containers/loan-billing/loan-detail";
import ApproveRequestQuickView from "containers/approve/request/approve-request-quick-view";
import ApproveOtherDetailComp from "containers/approve/other/other-detail";

export default {
  key: "done",
  icon: "check-circle",
  company: true,
  admin: false,
  // 设置了menuName就不需要设置语言包了
  url: "/main/done",
  components: ApproveComp,
  menuName: "已办事项",
  subMenu: [
    {
      key: "done-approved",
      icon: "bars",
      company: true,
      menuName: "已处理",
      url: "/main/done/done-approved",
      components: ApproveComp,
      children: {
        requestDetail: {
          key: "done-approve-request-detail",
          url: "/main/done/done-approved/approve-request/approve-request-detail/:formOID/:applicationOID",
          components: ApproveRequestDetailComp,
          parent: "done",
        },
        loanDetail: {
          key: "done-approve-loan-detail",
          url: "/main/done/done-approved/approve-loan/approve-loan-detail/:formOID/:loanBillOID/:backType",
          components: ApproveLoanDetailComp,
          parent: "done",
        },
        expenseDetail: {
          key: "done-approve-expense-report-detail",
          url: "/main/done/done-approved/approve-expense-report/approve-expense-report-detail/:expenseReportOID",
          components: ApproveExpenseReportDetailComp,
          parent: "done",
        },
        otherDetail: {
          key: "done-approve-other-detail",
          url: "/main/done/done-approved/approve-other/approve-other-detail/:formOID/:entityOID/:backType",
          components: ApproveOtherDetailComp,
          parent: "done",
        },
      },
    },
  ]
};
